package com.mes.service.tdd;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mes.dao.tdd.ProcurementChukuMaterielMapper;
import com.mes.entity.tdd.ProcurementChukuMateriel;
import com.mes.entity.tdd.tj.Tpage;
/**
 * 
 *@ClassName: ProcurementChukuMaterielServiceImpl 
 *@Description: 退货单详情
 *@Author tdd
 *@Date 2018-6-6 上午9:52:28 
 *@version 1.0
 */
@Service
@Transactional
public class ProcurementChukuMaterielServiceImpl implements ProcurementChukuMaterielService{
	//注入退货单详情Mapper
	@Resource ProcurementChukuMaterielMapper chukuMaterielMapper;
	/**
	 * 退货单详情分页
	 */
	@Override
	public List<ProcurementChukuMateriel> list(Tpage pageBean) {
		return chukuMaterielMapper.list(pageBean);
	}
	/**
	 * 退货单详情条数
	 */
	@Override
	public int total(Tpage pageBean) {
		return chukuMaterielMapper.total(pageBean);
	}
	/**
	 * 退货单详情添加
	 */
	@Override
	public Long add(ProcurementChukuMateriel chukuMateriel) {
		Long add = chukuMaterielMapper.add(chukuMateriel);
		return add;
	}
	/**
	 * 退货单详情修改
	 */
	@Override
	public int updata(ProcurementChukuMateriel chukuMateriel) {
		return chukuMaterielMapper.edit(chukuMateriel);
	}
	/**
	 * 退货单详情删除
	 */
	@Override
	public int updatadelete(ProcurementChukuMateriel chukuMateriel) {
		return chukuMaterielMapper.delete(chukuMateriel);
	}

}
